package com.example.boot.rtbanner.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.boot.rtbanner.service.RtBannerService;
import com.example.boot.util.ResultData;
import com.example.boot.util.ResultUtil;

@RestController
public class RtBannerController {
	@Autowired
	private RtBannerService rtBannerService;

	@RequestMapping(value = "/rt/findByBanner", method = RequestMethod.GET)
	public ResultData<Object> findByBanner() {

		return ResultUtil.success(rtBannerService.findByBanner());
	}

}
